import http from '../utils/http/http.js'

const uploadFile = (data) => {
    return http.post("/file/upload", data);
};
const fileList = (data) => {
    return http.get("/file/list", data);
}
const deleteFile = (data) => {
    return http.del("/file/delete", data);
}
const add = (data) => {
    return http.post("/famous/add", data);
}
export default {uploadFile,fileList,deleteFile,add};